package chances.epg.api.controller.model;

import java.util.List;

import chances.epg.data.PageBean;

public class MutilResultResponse extends RestResponse {
	private Object result;
	private List<?> items;
	private PageInfo pageInfo;
	
	
	public MutilResultResponse(int status,Object result, List<?> items) {
		super(status);
		this.result = result;
		this.items = items;
	}
	
	public MutilResultResponse(int status,Object result, List<?> items, PageBean pageBean) {
		super(status);
		this.result = result;
		this.items = items;
		if(pageBean != null){
		    this.pageInfo = new PageInfo(pageBean);
		}
	}
	
	
	public Object getResult() {
		return result;
	}
	public List<?> getItems() {
		return items;
	}
	
	public void setResult(Object result) {
		this.result = result;
	}
	public void setItems(List<Object> items) {
		this.items = items;
	}

	public PageInfo getPageInfo() {
		return pageInfo;
	}

	public void setPageInfo(PageInfo pageInfo) {
		this.pageInfo = pageInfo;
	}
}
